import http from '@/http'
import { ListYszParam, YszModel } from './YszModel'

export const addUserApi = (param:UserModel) => {
    return http.post("/api/ysz",param)
}

export const getListApi = (param:ListYszParam) => {
    return http.get("/api/ysz/list",param)
}

export const editUserApi = (param:YszModel) => {
    return http.put("/api/ysz",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/ysz/${id}`)
}
